'use strict';
module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    router.all('/oauth/token', app.oAuth2Server.token());
    router.post('/oauth/authorize', app.oAuth2Server.authorize(), 'oauth.authorize');
    router.get('/oauth/authenticate', app.oAuth2Server.authenticate(), 'oauth.authenticate');
  };
